package com.ruoyi.lvlian.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lvlian.mapper.KaifangqianMapper;
import com.ruoyi.lvlian.domain.Kaifangqian;
import com.ruoyi.lvlian.service.IKaifangqianService;

/**
 * 开放签信息Service业务层处理
 *
 * @author libancang
 * @date 2025-07-16
 */
@Service
public class KaifangqianServiceImpl implements IKaifangqianService {
    @Autowired
    private KaifangqianMapper kaifangqianMapper;

    /**
     * 查询开放签信息
     *
     * @param id 开放签信息主键
     * @return 开放签信息
     */
    @Override
    public Kaifangqian selectKaifangqianById(String id) {
        return kaifangqianMapper.selectKaifangqianById(id);
    }

    /**
     * 查询开放签信息列表
     *
     * @param kaifangqian 开放签信息
     * @return 开放签信息
     */
    @Override
    public List<Kaifangqian> selectKaifangqianList(Kaifangqian kaifangqian) {
        return kaifangqianMapper.selectKaifangqianList(kaifangqian);
    }

    /**
     * 新增开放签信息
     *
     * @param kaifangqian 开放签信息
     * @return 结果
     */
    @Override
    public int insertKaifangqian(Kaifangqian kaifangqian) {
        return kaifangqianMapper.insertKaifangqian(kaifangqian);
    }

    /**
     * 修改开放签信息
     *
     * @param kaifangqian 开放签信息
     * @return 结果
     */
    @Override
    public int updateKaifangqian(Kaifangqian kaifangqian) {
        return kaifangqianMapper.updateKaifangqian(kaifangqian);
    }

    /**
     * 批量删除开放签信息
     *
     * @param ids 需要删除的开放签信息主键
     * @return 结果
     */
    @Override
    public int deleteKaifangqianByIds(String[] ids) {
        return kaifangqianMapper.deleteKaifangqianByIds(ids);
    }

    /**
     * 删除开放签信息信息
     *
     * @param id 开放签信息主键
     * @return 结果
     */
    @Override
    public int deleteKaifangqianById(String id) {
        return kaifangqianMapper.deleteKaifangqianById(id);
    }

    @Override
    public Kaifangqian queryKaifangqianByContractNum(String contractNum) {
        return kaifangqianMapper.queryKaifangqianByContractNum(contractNum);
    }
}
